//
// Created by 17775 on 2024/9/20.
//

#ifndef RAYCI_LOGMESSAGEWINDOW_H
#define RAYCI_LOGMESSAGEWINDOW_H

#include <QDockWidget>
#include <QMutex>
#include <QDateTime>


QT_BEGIN_NAMESPACE
namespace Ui { class LogMessageWindow; }
QT_END_NAMESPACE

class LogMessageWindow : public QDockWidget {
Q_OBJECT


public slots:
    void appendLogMessage(QtMsgType type, const QString& message);

public:
    explicit LogMessageWindow(QWidget *parent = nullptr);

    ~LogMessageWindow() override;

private:
    Ui::LogMessageWindow *ui;
    QMutex g_mutex;
};


#endif //RAYCI_LOGMESSAGEWINDOW_H
